package com.ai.service.comm;

import com.ai.model.vo.DictModel;
import com.ai.entity.comm.SysDict;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author chen
 * @since 2023-03-28 16:52:35
 */
public interface ISysDictService extends IService<SysDict> {

    String queryTableDictTextByKey(String table, String text, String code, String key);

    String queryDictTextByKey(String code, String key);

    List<DictModel> queryDictItemsByCode(@Param("code") String code);

    List<DictModel> queryEnableDictItemsByCode(String code);

    List<DictModel> queryTableDictItemsByCode(String table, String text, String code);

    Map<String, List<DictModel>> queryManyDictByKeys(List<String> dictCodeList, List<String> keys);

    List<DictModel> queryTableDictTextByKeys(String table, String text, String code, List<String> keys);

}
